/**
 * Project Name:JavaBaseReview
 * Package Name:com.xuwei.base.stack
 * author:David
 * Date:2016年5月12日上午11:14:21
 * Copyright (c) 2016, xw123box@126.com All Rights Reserved.
 *
 */
package com.xuwei.base.stack;

/**
 * @author David
 * @since 2016年5月12日 上午11:14:21
 * @version 
 * @since JDK 1.6
 */
public class StackTest {

	public static void main(String[] args) {
		StackLink stack=new StackLink();
		System.out.println("--------------------------");
		System.out.println("size:"+stack.getSize());
		stack.push(11);
		stack.push(27);
		stack.push(36);
		stack.push(187);
		System.out.println("--------------------------");
		System.out.println("size:"+stack.getSize());
		System.out.println("peek:"+stack.peek());
		stack.pop();
		System.out.println("--------------------------");
		System.out.println("size:"+stack.getSize());
		System.out.println("peek:"+stack.peek());
	}
}
